﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DARE.Save.DataStructures;

namespace DARE
{
    public class CComponentData: ISaveData
    {
        public uint gameObjectId;
        public CComponent component;

        public virtual void FillDataStructure(object component)
        {
            if ((component as CComponent).GameObject != null)
                gameObjectId = (component as CComponent).GameObject.ID;
            this.component = component as CComponent;
        }

        //TODO: Finir.
        public virtual void FillFromDataStructure(out object go, params object[] paramsData)
        {
            go = component;
        }

        public virtual void FillFromDataStructure(ref CComponent component, CRender3D render, CHUDSystem hud)
        {

        }
    }
}
